using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Manager : MonoBehaviour
{
    private static ResourceManager _resource;
    private static LuaManager _lua;
    //private static UIManager _ui;
    //private static EntityManager _entity;
    //private static MySceneManager _scene;
    //private static SoundManager _sound;
    //private static EventManager _event;
    //private static PoolManager _pool;
    //private static NetManager _net;

    public static ResourceManager Resource
    {
        get { return _resource; }
    }
    public static LuaManager Lua
    {
        get { return _lua; }
    }
    //public static UIManager UI
    //{
    //    get { return _ui; }
    //}
    //public static EntityManager Entity
    //{
    //    get { return _entity; }
    //}
    //public static MySceneManager Scene
    //{
    //    get { return _scene; }
    //}

    //public static SoundManager Sound
    //{
    //    get { return _sound; }
    //}

    //public static EventManager Event
    //{
    //    get { return _event; }
    //}

    //public static PoolManager Pool
    //{
    //    get { return _pool; }
    //}

    //public static NetManager Net
    //{
    //    get { return _net; }
    //}

    private void Awake()
    {
        _resource = this.gameObject.AddComponent<ResourceManager>();
        //_sound = this.gameObject.AddComponent<SoundManager>();
        _lua = this.gameObject.AddComponent<LuaManager>();
        //_ui = this.gameObject.AddComponent<UIManager>();
        //_entity = this.gameObject.AddComponent<EntityManager>();
        //_scene = this.gameObject.AddComponent<MySceneManager>();
        //_event = this.gameObject.AddComponent<EventManager>();
        //_pool = this.gameObject.AddComponent<PoolManager>();
        //_net = this.gameObject.AddComponent<NetManager>();
    }
}
